package hms.ReservationsModule;

import java.util.ArrayList;

import hms.database.DBJFrame;
import hms.rooms.*;

public class RoomPopupTest {
	public static void main(String args[]) {
		ArrayList<Room> pickedRooms = new ArrayList<Room>();

		RoomTable rooms = new RoomTable();
		{
			// Prep work, ignore
			pickedRooms.add(rooms.get(0));
			pickedRooms.add(rooms.get(3));
		}
		rooms.removeAll(pickedRooms);
		DBJFrame<RoomTable,Room> frame = new DBJFrame<RoomTable,Room>(rooms);
		frame.showDialog("Pick a Room");
		pickedRooms.add(frame.getSelectedRowObject());
		for(Room r : pickedRooms) {

			System.out.println(r);
		}
		System.exit(0);
	}
}
